package helixoide;

import helixoide.secondlife.devices.deviceManager;

/*
 * Finally getting around to making the backup system that loads things from a textfile (or db)
 * Things include:
 * 		->Device URLs
 * 		->Device Channel
 * 		->Region
 * 		->UUID
 * 		->Position
 * So now to develop a protocol thingy for dumping the information from all the devices
 * I am thinking devices are separated by *&^
 * using | as a separator for device information
 * uuid|channel|url|region|position
 */
public class backupThread implements Runnable
{

	private deviceManager manager;
	public backupThread(deviceManager managment)
	{
		this.manager = managment;
	}
	public void run() 
	{
		hxLog.write("Device Data Dump", "Dumping Device Data");
		Util.dumpDeviceData(manager);
		hxLog.write("Device Data Dump", "Dump Complete terminating thread");
		Util.interrupt(Thread.currentThread());
	}

}
